package com.bankwel.j2d.model;

import java.awt.Graphics;

import com.bankwel.j2d.core.J2dMatrix;

public class Object2d {

	private Vector2d ref;

	public Object2d(float x, float y) {
		ref = new Vector2d(x, y);
	}

	public Vector2d getRef() {
		return ref;
	}

	public void setRef(Vector2d ref) {
		this.ref = ref;
	}

	public void transformBy(J2dMatrix action) {
		ref = ref.transformBy(action);
	}

	public void draw(Graphics g) {
		g.drawString(".", (int) ref.getX(), (int) ref.getY());
	}

}
